package com.moonshine.mapper;

import com.moonshine.pojo.Emp;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EmpMapper {

    // 获取、、、

    @Select("select count(*) from tb_emp")
    public Long count();

    /**
     * 分页查询
     * @param pageSize
     * @param pageNumber
     * @return
     */
    @Select("select * from tb_emp limit #{pageSize}, #{pageNumber}")
    public List<Emp> getEmpPageList(Integer pageSize, Integer pageNumber);

}
